import requests
url = 'http://httpbin.org/post'
payload = {
'website':'softhunt.net',
'courses':['Python','JAVA']
}
response = requests.post(url, data=payload)
print(response.text)
from requests_html import HTMLSession
session = HTMLSession()
# url to make a post request to
url='https://httpbin.org/post'
post_user ={
"user":'alixaprodev',
"pass":'password'
}
# making post request
response = session.post(url, data=post_user)
print(f'Content of Request:{response.content} ')
print(f'URL : {response.url}')
## output ##
# Content of Request:b'{ \n "form": {\n "pass": "password", \n "user":
#"alixaprodev"\n }
# URL : https://httpbin.org/postCopy Code